package cn.com.surker.weight.dao;

import cn.com.surker.weight.entity.WeightStorageInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 过磅仓位状态 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2025-05-12
 */
public interface WeightStorageInfoDao extends BaseMapper<WeightStorageInfo> {

    /**
     * 根据仓位ID与公司ID查询仓位信息
     * @param orgId
     * @param storageId
     * @return
     */
    WeightStorageInfo findByStorage(Long orgId, Long storageId);

    /**
     * 查询超时未归位的仓位
     * @param orgId
     * @param time
     * @return
     */
    List<WeightStorageInfo> findTimeOut(Long orgId, String time);

}
